#include "stdafx.h"
#include "HierarchyWnd.h"

#include "GuiPlugin.h"
#include "ResourceManager.h"
CHierarchyWnd::CHierarchyWnd()
: mpCreateEntityWnd(nullptr)
{
}

CHierarchyWnd::~CHierarchyWnd()
{
	SafeRelease(mpCreateEntityWnd);
}

void CHierarchyWnd::initWnd()
{
	mini::ui::CList* pList = dynamic_cast<mini::ui::CList*>(findChildWnd("Actors"));
	if (nullptr != pList)
	{
		pList->addRootItem("MainCamera");
		pList->addRootItem("test");
	}
}

void CHierarchyWnd::bindMsg()
{
	BindMessage(mini::LEFTUP, "Create", &CHierarchyWnd::create);
}

bool CHierarchyWnd::create()
{

	return true;
}



